package com.dj.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * @author cyf
 * @description
 * @create 2018-06-27 13:36
 **/
//@Component
public class TestController {

    private static final Logger LOGGER = LoggerFactory.getLogger(PatientController.class);

    // 运行项目，用POSTMAN 直接访问：http://192.168.120.70:9092/com.dj/Patient/2

    // 读取患者
//    @Read(version = true)
//    public Patient getPatientById(@IdParam IdType theId){
//        Patient retVal = new Patient();
//        retVal.addIdentifier().setSystem("urn:mrns").setValue("12345");
//        retVal.addName().setFamily("Smith").addGiven("Tester").addGiven("Q");
////         ...etc...
//
////         if you know the version ID of the resource, you should set it and HAPI will
////         include it in a Content-Location header
//        retVal.setId(new IdType("Patient", "123", "2"));
//        return retVal;
//    }

}
